import { EggAppConfig, PowerPartial } from 'egg';

export default (): PowerPartial<EggAppConfig> => {
  const config: PowerPartial<EggAppConfig> = {};

  // 本地开发环境配置
  config.logger = {
    level: 'DEBUG',
    consoleLevel: 'DEBUG',
  };

  // 本地数据库配置
  config.sequelize = {
    logging: console.log, // 显示SQL查询日志
  } as any;

  return config;
};
